package com.fir.my.batis.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author fir
 * @since 2024-05-20 06:00:12
 */
@Getter
@Setter
@TableName("sys_user")
@ApiModel(value = "SysUser对象", description = "用户信息表")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("登录账户")
    private String loginName;

    @ApiModelProperty("用户名称（显示名称）")
    private String userName;

    @ApiModelProperty("登录密码")
    private String password;

    @ApiModelProperty("用户编号")
    private Integer userCode;

    @ApiModelProperty("部门")
    private String deptName;

    @ApiModelProperty("部门编号")
    private Integer deptCode;

    @ApiModelProperty("用户状态(00：禁用，01：启用)")
    private String status;

    @ApiModelProperty("最后登录时间")
    private Date lastLogin;

    @ApiModelProperty("登陆IP")
    private String loginIp;

    @ApiModelProperty("用户来源(web android等)")
    private String userFrom;

    @ApiModelProperty("客户端ID")
    private String clientId;

    @ApiModelProperty("1:普通用户，2：管理员用户")
    private String type;

    @ApiModelProperty("创建时间")
    private Date creteTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("1:普通用户，2：管理员用户")
    @TableLogic
    private String deleted;
}
